package sample.innerCls;

public class Parcel3 {
	private void internalTracking(boolean b) {
		if (b) {
			// scope anywhere
			class TrackingSlip {
				private String id;

				TrackingSlip(String s) {
					this.id = s;
				}

				String getSlip() {
					return this.id;
				}
			}

			// declare this inner classin this scope
			TrackingSlip ts = new TrackingSlip("slip");

			String s = ts.getSlip();
		}//fi
	}

	public void track() {
		this.internalTracking(true);
	}

	public static void main(String[] args) {
		Parcel3 p = new Parcel3();
		p.track();
	}
}
